﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gamemaster.Naming
{
    public class DummyDatabase : INameDatabase
    {
        public const string DummyName = "Naming database not configured";

        public List<First> GetFirstNames(GenderOptions gender)
        {
            List<First> list = new List<First>();

            for (int i = 1; i <= 50; i++)
            {
                list.Add(new First()
                {
                    Gender = "Male",
                    ID = i,
                    Name = DummyName
                });
            }

            for (int i = 51; i <= 100; i++)
            {
                list.Add(new First()
                {
                    Gender = "Female",
                    ID = i,
                    Name = DummyName
                });
            }

            return list.Where(f => f.Gender == gender.ToString() || gender == GenderOptions.Both).ToList();
        }
    }
}
